package com.shop.shoporder.service.Owner.Impl;

import com.shop.shoporder.mapper.order.OwnerOrderMapper;
import com.shop.shoporder.service.Owner.OwnerOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("OwnerOrderService")
public class OwnerOrderServiceImpl implements OwnerOrderService {

    @Autowired
    OwnerOrderMapper ownerOrderMapper;

    @Override
    public double getOwnerOrderAmount(List<String> userNoIdList)
    {
        return ownerOrderMapper.getOwnerOrderAmount(userNoIdList);
    }

    @Override
    public double getOwnerOrderZoneAmount(List<String> userNoIdList,List<String> zoneIdList)
    {
        return ownerOrderMapper.getOwnerOrderZoneAmount(userNoIdList,zoneIdList);
    }

    @Override
    public int getOwnerOrderCount(List<String> userNoIdList)
    {
        return ownerOrderMapper.getOwnerOrderCount(userNoIdList);
    }

    @Override
    public int getOwnerOrderZoneCount(List<String> userNoIdList,List<String> zoneIdList)
    {
        return ownerOrderMapper.getOwnerOrderZoneCount(userNoIdList,zoneIdList);
    }


}
